/*
 * jxController Project (2014)
 * 
 * by Denilson Edinaldo Pinto
 * 
 * LGPL
 * Copyright (C) 2014
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package org.jxController.i18n;

import java.util.Locale;

import org.jxUtils.i18n.Localizator;

/**
 * @author Denilson Edinaldo Pinto
 * @porject jxController
 * @package org.jxController.i18n
 * @date 24/05/2014 - 18:31:20
 */
public final class ControllerMessages extends Localizator {
	
	static final String PACKAGE_NAME = ControllerMessages.class.getPackage().getName();
	
	private static final String CLASS_NAME = ControllerMessages.class.getSimpleName().replace("Messages", "");
	
	/**
	 * 
	 */
	public ControllerMessages() {
	
		this(Locale.getDefault());
	}
	
	/**
	 * @param locale
	 */
	public ControllerMessages(final Locale locale) {
	
		super(PACKAGE_NAME + ".messages." + CLASS_NAME, locale);
	}
	
	/**
	 * @param dao
	 * @param error
	 * @return i18n message
	 */
	public String couldNotStartDAO(final String dao, final String error) {
	
		return getMessage("couldNotStart.$DAO.$error", dao, error);
	}
	
	/**
	 * @return i18n message
	 */
	public String contains() {
	
		return getMessage("contains");
	}
	
	/**
	 * @return i18n message
	 */
	public String firstOne() {
	
		return getMessage("firstOne");
	}
	
	/**
	 * @return i18n message
	 */
	public String first() {
	
		return getMessage("first");
	}
	
	/**
	 * @return i18n message
	 */
	public String last() {
	
		return getMessage("last");
	}
	
	/**
	 * @return i18n message
	 */
	public String lastOne() {
	
		return getMessage("lastOne");
	}
	
	/**
	 * @param field
	 * @return i18n message
	 */
	public String noCorrespondingColumnWasFoundToFieldInDatabase(final Object field) {
	
		return getMessage("noCorrespondingColumnWasFoundTo.$field.InDatabase", field);
	}
	
	/**
	 * @return i18n message
	 */
	public String noRecordsWereFound() {
	
		return getMessage("noRecordsWereFound");
	}
	
	/**
	 * @return i18n message
	 */
	public String reallyWantDeleteThisResult() {
	
		return getMessage("reallyWantDeleteThisResult");
	}
	
	/**
	 * @return i18n message
	 */
	public String reallyWantSaveThisResult() {
	
		return getMessage("reallyWantSaveThisResult");
	}
	
	/**
	 * @return i18n message
	 */
	public String recordHasBeenChangedBySomeone() {
	
		return getMessage("record.hasBeenChangedBySomeone");
	}
	
	/**
	 * @return i18n message
	 */
	public String recordHasBeenDeletedBySomeone() {
	
		return getMessage("record.hasBeenDeletedBySomeone");
	}
}
